//Macro to reformat the MacWEEK News file into setext format for easy viewing.
//Crudely put together by Breadfan on 9/10/93.
//search and destroy pointless spaces at end of paragraphs.
Find/Replace ":b+$" "" "Wagt"
//set cursor position to 0,0 (top of page)
SetSelect(0,0)
//begin loop
loop:
//find the title for each article and select it - exits the macro if not found
Find Next "News\:\s.+\r|Gateways\:\s.+\r|GA\:\s.+\r|BusinessWatch\:\s.+\r|Special Report\:\s.+\r|Review\:\s.+\r|ProductWatch\:\s.+\r|Mac the Knife\:\s.+\r" "gat-WT"
//clears the clipboard
Copy "" ""
//copies the found and selected text to the clipboard
Copy
//brings the clipboard window to the front
Show Clipboard "On"
//replace each individual character in the clipboard with a hyphen
Find/Replace "." "-" "gat"
//closes the clipboard window
Show Clipboard "Off"
//move the cursor to the right effectively placing the cursor at the
//beginning of the line following the title.
Key
//pastes the content of the clipboard into the document